package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.repository.IDestinationSearchRepository;
import cn.wolfcode.luowowo.serach.service.IDestinationSearchService;
import cn.wolfcode.luowowo.serach.template.DestinationTemplate;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by admin on 2019/8/17.
 */
@Service
public class DestinationSearchServiceImpl implements IDestinationSearchService {

    @Autowired
    private IDestinationSearchRepository repository;

    @Override
    public void saveOrUpdate(DestinationTemplate destinationTemplate) {
        repository.save(destinationTemplate);
    }

    @Override
    public DestinationTemplate findByName(String name) {
        return repository.findByName(name);
    }
}
